import Slidebar from '../components/public/slidebar.vue'
import Top from '../components/public/top.vue'

import Home from '../components/home.vue'
import HomeL from '../components/home/homeL.vue'
import HomeP from '../components/home/homeP.vue'
import Home2 from '../components/home/home2.vue'

import Activity from '../components/activity/activity.vue'

import Manage from '../components/manage/manage.vue'
import ManageEnd from '../components/manage/manageEnd.vue'
import ManageLive from '../components/manage/manageLive.vue'
import ManageNone from '../components/manage/manageNone.vue'
import ManageShare from '../components/manage/manageShare.vue'

import Earning from '../components/earning/earning.vue'
import EarningForm from '../components/earning/earningForm.vue'
import EarningTable from '../components/earning/earningTable.vue'

import Data from '../components/data/data.vue'

import User from '../components/user/user.vue'

// import Student from '../components/student/student.vue'
// import StudentTask from '../components/student/studentTask.vue'
// import StudentNotice from '../components/student/studentNotice.vue'
// import StudentUpload from '../components/student/studentUpload.vue'
// import StudentDownload from '../components/student/studentDownload.vue'
// import UploadStatus from '../components/student/uploadStatus.vue'
// /*教师页面开始*/
// import Teacher from '../components/teacher/teacher.vue'
// import createClass from '../components/teacher/createClass.vue'
// import Class from '../components/teacher/class.vue'
// import Assignment from '../components/teacher/assignment.vue'
// import Message from '../components/teacher/message.vue'
// import Correct from '../components/teacher/correct.vue'
// import Score from '../components/teacher/score.vue'
// /*教师页面结束*/
// import Admin from '../components/admin/admin.vue'



var router = [
    {
        path: '/',
        redirect: '/home'
    },
    {
        path: '/home',
        components: {
            default: Home,
            top: Top,
            slidebar: Slidebar
        },
    },
    {
        path: '/homeP',
        components: {
            default: HomeP,
            top: Top,
            slidebar: Slidebar
        },
    },
    {
        path: '/homeL',
        components: {
            default: HomeL,
            top: Top,
            slidebar: Slidebar
        },
    },
    {
        path: '/home2',
        components: {
            default: Home2,
            top: Top,
            slidebar: Slidebar
        },
    },
    {
        path: '/activity',
        components: {
            default: Activity,
            top: Top,
            slidebar: Slidebar
        },
    },
    {
        path: '/manage',
        components: {
            default: Manage,
            top: Top,
            slidebar: Slidebar
        },
    },
    {
        path: '/manageEnd',
        components: {
            default: ManageEnd,
            top: Top,
            slidebar: Slidebar
        },
    },
    {
        path: '/manageLive',
        components: {
            default: ManageLive,
            top: Top,
            slidebar: Slidebar
        },
    },
    {
        path: '/manageNone',
        components: {
            default: ManageNone,
            top: Top,
            slidebar: Slidebar
        },
    },
    {
        path: '/manageShare',
        components: {
            default: ManageShare,
            top: Top,
            slidebar: Slidebar
        },
    },
    {
        path: '/earning',
        components: {
            default: Earning,
            top: Top,
            slidebar: Slidebar
        },
    },
    {
        path: '/earningForm',
        components: {
            default: EarningForm,
            top: Top,
            slidebar: Slidebar
        },
    },
    {
        path: '/earningTable',
        components: {
            default: EarningTable,
            top: Top,
            slidebar: Slidebar
        },
    },
    {
        path: '/data',
        components: {
            default: Data,
            top: Top,
            slidebar: Slidebar
        },
    },
    {
        path: '/user',
        components: {
            default: User,
            top: Top,
            slidebar: Slidebar
        },
    },
    // {
    //     path: '/student',
    //     components: {
    //         default: Student,
    //         top: Top,
    //         slidebar: Slidebar
    //     },
    //     children: [
    //         {
    //             path: '/student/studentNotice',
    //             component: StudentNotice,
    //         },
    //         {
    //             path: '/student/studentTask',
    //             component: StudentTask
    //         },
    //         {
    //             path: '/student/studentUpload',
    //             component: StudentUpload
    //         },
    //         /*{
    //             path: '/student/uploadStatus',
    //             component: UploadStatus
    //         },*/
    //         {
    //             path: '/student/studentDownload',
    //             component: StudentDownload
    //         }
    //     ]
    // },
    // {
    //     path: '/studentUpload',
    //     components: {
    //         default: StudentUpload,
    //         top: Top,
    //         slidebar: Slidebar
    //     },
    //     children: [
    //         /*{ path: "login", component: Login }*/
    //     ]
    // },
    // {
    //     path: '/UploadStatus',
    //     components: {
    //         default: UploadStatus,
    //         top: Top,
    //         slidebar: Slidebar
    //     },
    //     children: [
    //         /*{ path: "login", component: Login }*/
    //     ]
    // },
    // {
    //     path: '/teacher',
    //     components: {
    //         default: Teacher,
    //         top: Top,
    //         slidebar: Slidebar
    //     },
    //     children: [
    //         { path: "createClass", component: createClass },
    //         { path: "class", component: Class },
    //         { path: "assignment", component: Assignment },
    //         { path: "message", component: Message },
    //         { path: "correct", component: Correct },
    //         { path: "score", component: Score }
    //     ]
    // },
    // {
    //     path: '/admin',
    //     components: {
    //         default: Admin,
    //         top: Top
    //     },
    //     children: [
    //         /*{ path: "", component: Slidebar }*/
    //     ]
    // }
    /*{
        path: '/student',
        component: Student,
        children: [
            { path: "", component: Slidebar }
        ]
    }*/
]
export default router